package com.tanhua.dubbo.test;

import com.tanhua.domain.mongo.Options;
import com.tanhua.domain.mongo.PersonalityType;
import com.tanhua.domain.mongo.Questionnaire;
import com.tanhua.domain.mongo.Topic;
import com.tanhua.dubbo.utils.IdService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.HashMap;
import java.util.Map;

@RunWith(SpringRunner.class)
@SpringBootTest
public class QuestionnaireTset {
    @Autowired
    private MongoTemplate mongoTemplate;
    @Autowired
    private IdService idService;

    @Test
    public void testAddQuestionnaire(){
        Questionnaire q1 = new Questionnaire();
        q1.setNid(1);
        //初级灵魂题,中级灵魂题,高级灵魂题
        q1.setName("初级灵魂题");
        q1.setCover("https://tanhua-dev.oss-cn-zhangjiakou.aliyuncs.com/images/test_soul/qn_cover_01.png");
        //初级,中级,高级
        q1.setLevel("初级");
        //2颗星，3颗星，5颗星
        q1.setStar(2);
        q1.setQid(1);
        mongoTemplate.save(q1);

        Questionnaire q2 = new Questionnaire();
        q2.setNid(2);
        //初级灵魂题,中级灵魂题,高级灵魂题
        q2.setName("中级灵魂题");
        q2.setCover("https://tanhua-dev.oss-cn-zhangjiakou.aliyuncs.com/images/test_soul/qn_cover_02.png");
        //初级,中级,高级
        q2.setLevel("中级");
        //2颗星，3颗星，5颗星
        q2.setStar(3);
        q2.setQid(2);
        mongoTemplate.save(q2);
        Questionnaire q3 = new Questionnaire();
        q3.setNid(3);
        //初级灵魂题,中级灵魂题,高级灵魂题
        q3.setName("高级灵魂题");
        q3.setCover("https://tanhua-dev.oss-cn-zhangjiakou.aliyuncs.com/images/test_soul/qn_cover_03.png");
        //初级,中级,高级
        q3.setLevel("高级");
        //2颗星，3颗星，5颗星
        q3.setStar(5);
        q3.setQid(3);
        mongoTemplate.save(q3);
    }

    @Test
    public void testTopic(){
        Topic t1 = new Topic();
        t1.setQid(1);
        t1.setTopId(1);
        t1.setQuestion("你何时感觉最好？");
        mongoTemplate.save(t1);
        Topic t2 = new Topic();
        t2.setQid(1);
        t2.setTopId(2);
        t2.setQuestion("你走路时是");
        mongoTemplate.save(t2);
        Topic t3 = new Topic();
        t3.setQid(1);
        t3.setTopId(3);
        t3.setQuestion("和人说话时");
        mongoTemplate.save(t3);
        Topic t4 = new Topic();
        t4.setQid(1);
        t4.setTopId(4);
        t4.setQuestion("坐着休息时");
        mongoTemplate.save(t4);
        Topic t5 = new Topic();
        t5.setQid(1);
        t5.setTopId(5);
        t5.setQuestion("碰到你感到发笑的事时，你的反应是");
        mongoTemplate.save(t5);
        Topic t6 = new Topic();
        t6.setQid(1);
        t6.setTopId(6);
        t6.setQuestion("当你去一个派对或社交场合时，");
        mongoTemplate.save(t6);
        Topic t7 = new Topic();
        t7.setQid(1);
        t7.setTopId(7);
        t7.setQuestion("当你非常专心工作时，有人打断你，你会？");
        mongoTemplate.save(t7);
        Topic t8 = new Topic();
        t8.setQid(1);
        t8.setTopId(8);
        t8.setQuestion("下列颜色中，你最喜欢哪一种颜色？");
        mongoTemplate.save(t8);
        Topic t9 = new Topic();
        t9.setQid(1);
        t9.setTopId(9);
        t9.setQuestion("临入睡的前几分钟，你在床上的姿势是？");
        mongoTemplate.save(t9);
        Topic t10 = new Topic();
        t10.setQid(1);
        t10.setTopId(10);
        t10.setQuestion("你经常梦到自己在？");
        mongoTemplate.save(t10);

        Topic t11 = new Topic();
        t11.setQid(2);
        t11.setTopId(1);
        t11.setQuestion("你通常一周生几次气？");
        mongoTemplate.save(t11);
        Topic t12 = new Topic();
        t12.setQid(2);
        t12.setTopId(2);
        t12.setQuestion("在1至10的情绪等级中，10是最高强度，评估你的情绪等级");
        mongoTemplate.save(t12);
        Topic t13 = new Topic();
        t13.setQid(2);
        t13.setTopId(3);
        t13.setQuestion("你一般发脾气持续的时间多长?");
        mongoTemplate.save(t13);
        Topic t14 = new Topic();
        t14.setQid(2);
        t14.setTopId(4);
        t14.setQuestion("你是否感到食欲不振？或情不自禁地暴饮暴食？");
        mongoTemplate.save(t14);
        Topic t15 = new Topic();
        t15.setQid(2);
        t15.setTopId(5);
        t15.setQuestion("有一天在路上，你遇到失去连络的旧情人,你最怕旧情人提起什么？");
        mongoTemplate.save(t15);
        Topic t16 = new Topic();
        t16.setQid(2);
        t16.setTopId(6);
        t16.setQuestion("你在看地图,或街上指示时,会");
        mongoTemplate.save(t16);
        Topic t17 = new Topic();
        t17.setQid(2);
        t17.setTopId(7);
        t17.setQuestion("在准备一道做法复杂的菜时,一边正在播放收音机, 还有朋友的来电.你会:");
        mongoTemplate.save(t17);
        Topic t18 = new Topic();
        t18.setQid(2);
        t18.setTopId(8);
        t18.setQuestion("朋友要来参观你的新家,问你该怎么走,你会:");
        mongoTemplate.save(t18);
        Topic t19 = new Topic();
        t19.setQid(2);
        t19.setTopId(9);
        t19.setQuestion("解释一个想法或概念时,你很可能会怎么做:");
        mongoTemplate.save(t19);
        Topic t20 = new Topic();
        t20.setQid(2);
        t20.setTopId(10);
        t20.setQuestion("看完一场很棒的电影回家后,你喜欢:");
        mongoTemplate.save(t20);

        Topic t21 = new Topic();
        t21.setQid(3);
        t21.setTopId(1);
        t21.setQuestion("你参加一个社交宴会时,有人向你介绍七八位新朋友,隔天你会:");
        mongoTemplate.save(t21);
        Topic t22 = new Topic();
        t22.setQid(3);
        t22.setTopId(2);
        t22.setQuestion("你在饭店里,听到远处传来警报,你会:");
        mongoTemplate.save(t22);
        Topic t23 = new Topic();
        t23.setQid(3);
        t23.setTopId(3);
        t23.setQuestion("你忘了把钥匙放在哪里,你会:");
        mongoTemplate.save(t23);
        Topic t24 = new Topic();
        t24.setQid(3);
        t24.setTopId(4);
        t24.setQuestion("你对事情的结局如何会有强烈的预感,是借着:");
        mongoTemplate.save(t24);
        Topic t25 = new Topic();
        t25.setQid(3);
        t25.setTopId(5);
        t25.setQuestion("你听到一首新歌,是你喜欢的歌手唱的,通常你会:");
        mongoTemplate.save(t25);
        Topic t26 = new Topic();
        t26.setQid(3);
        t26.setTopId(6);
        t26.setQuestion("你在看电视时电话响了,你会:");
        mongoTemplate.save(t26);
        Topic t27 = new Topic();
        t27.setQid(3);
        t27.setTopId(7);
        t27.setQuestion("你找到一个停车位,可是空间很小,必须用倒车才能停进去,你会:");
        mongoTemplate.save(t27);
        Topic t28 = new Topic();
        t28.setQid(3);
        t28.setTopId(8);
        t28.setQuestion("在不熟悉的地方,有人问你北方是哪个方向,你会:");
        mongoTemplate.save(t28);
        Topic t29 = new Topic();
        t29.setQid(3);
        t29.setTopId(9);
        t29.setQuestion("一个朋友的机器出了问题,你会:");
        mongoTemplate.save(t29);
        Topic t30 = new Topic();
        t30.setQid(3);
        t30.setTopId(10);
        t30.setQuestion("在电影院里你最喜欢坐在:");
        mongoTemplate.save(t30);
    }

    @Test
    public void testOptions1(){
        Options o1 = new Options();
        o1.setQid(1);
        o1.setTopId(1);
        o1.setKeyId("A");
        o1.setOptions("早晨");
        o1.setScore(2D);
        mongoTemplate.save(o1);
        Options o2 = new Options();
        o2.setQid(1);
        o2.setTopId(1);
        o2.setKeyId("B");
        o2.setOptions("下午及傍晚");
        o2.setScore(4D);
        mongoTemplate.save(o2);
        Options o3 = new Options();
        o3.setQid(1);
        o3.setTopId(1);
        o3.setKeyId("C");
        o3.setOptions("夜里");
        o3.setScore(6D);
        mongoTemplate.save(o3);
        Options o4 = new Options();
        o4.setQid(1);
        o4.setTopId(2);
        o4.setKeyId("A");
        o4.setOptions("大步地快走");
        o4.setScore(6D);
        mongoTemplate.save(o4);
        Options o5 = new Options();
        o5.setQid(1);
        o5.setTopId(2);
        o5.setKeyId("B");
        o5.setOptions("小步地块走");
        o5.setScore(4D);
        mongoTemplate.save(o5);
        Options o6 = new Options();
        o6.setQid(1);
        o6.setTopId(2);
        o6.setKeyId("C");
        o6.setOptions("不快，仰着头面对着世界");
        o6.setScore(7D);
        mongoTemplate.save(o6);
        Options o7 = new Options();
        o7.setQid(1);
        o7.setTopId(2);
        o7.setKeyId("D");
        o7.setOptions("不快，低着头");
        o7.setScore(2D);
        mongoTemplate.save(o7);
        Options o8 = new Options();
        o8.setQid(1);
        o8.setTopId(2);
        o8.setKeyId("E");
        o8.setOptions("很慢");
        o8.setScore(1D);
        mongoTemplate.save(o8);
        Options o9 = new Options();
        o9.setQid(1);
        o9.setTopId(3);
        o9.setKeyId("A");
        o9.setOptions("手臂交叠站着");
        o9.setScore(4D);
        mongoTemplate.save(o9);
        Options o10 = new Options();
        o10.setQid(1);
        o10.setTopId(3);
        o10.setKeyId("B");
        o10.setOptions("双手紧握着");
        o10.setScore(2D);
        mongoTemplate.save(o10);
        Options o11 = new Options();
        o11.setQid(1);
        o11.setTopId(3);
        o11.setKeyId("C");
        o11.setOptions("一只手或两只手放在臀部");
        o11.setScore(5D);
        mongoTemplate.save(o11);
        Options o12 = new Options();
        o12.setQid(1);
        o12.setTopId(3);
        o12.setKeyId("D");
        o12.setOptions("碰着或推着与你说话的人");
        o12.setScore(7D);
        mongoTemplate.save(o12);
        Options o13 = new Options();
        o13.setQid(1);
        o13.setTopId(3);
        o13.setKeyId("E");
        o13.setOptions("玩着你的耳朵，摸着你的下巴或用手整理头发");
        o13.setScore(6D);
        mongoTemplate.save(o13);

        Options o14 = new Options();
        o14.setQid(1);
        o14.setTopId(4);
        o14.setKeyId("A");
        o14.setOptions("两膝盖并拢");
        o14.setScore(4D);
        mongoTemplate.save(o14);
        Options o15 = new Options();
        o15.setQid(1);
        o15.setTopId(4);
        o15.setKeyId("B");
        o15.setOptions("两腿交叉");
        o15.setScore(6D);
        mongoTemplate.save(o15);
        Options o16 = new Options();
        o16.setQid(1);
        o16.setTopId(4);
        o16.setKeyId("C");
        o16.setOptions("两腿伸直");
        o16.setScore(2D);
        mongoTemplate.save(o16);
        Options o17 = new Options();
        o17.setQid(1);
        o17.setTopId(4);
        o17.setKeyId("D");
        o17.setOptions("一腿蜷在身下");
        o17.setScore(1D);
        mongoTemplate.save(o17);

        Options o18 = new Options();
        o18.setQid(1);
        o18.setTopId(5);
        o18.setKeyId("A");
        o18.setOptions("一个欣赏的大笑");
        o18.setScore(6D);
        mongoTemplate.save(o18);
        Options o19 = new Options();
        o19.setQid(1);
        o19.setTopId(5);
        o19.setKeyId("B");
        o19.setOptions("笑着，但不大声");
        o19.setScore(4D);
        mongoTemplate.save(o19);
        Options o20 = new Options();
        o20.setQid(1);
        o20.setTopId(5);
        o20.setKeyId("C");
        o20.setOptions("轻声地笑");
        o20.setScore(3D);
        mongoTemplate.save(o20);
        Options o21 = new Options();
        o21.setQid(1);
        o21.setTopId(5);
        o21.setKeyId("D");
        o21.setOptions("羞怯的微笑");
        o21.setScore(5D);
        mongoTemplate.save(o21);

        Options o22 = new Options();
        o22.setQid(1);
        o22.setTopId(6);
        o22.setKeyId("A");
        o22.setOptions("很大声地入场以引起注意");
        o22.setScore(6D);
        mongoTemplate.save(o22);
        Options o23 = new Options();
        o23.setQid(1);
        o23.setTopId(6);
        o23.setKeyId("B");
        o23.setOptions("安静地入场，找你认识的人");
        o23.setScore(4D);
        mongoTemplate.save(o23);
        Options o24 = new Options();
        o24.setQid(1);
        o24.setTopId(6);
        o24.setKeyId("C");
        o24.setOptions("非常安静地入");
        o24.setScore(2D);
        mongoTemplate.save(o24);

        Options o25 = new Options();
        o25.setQid(1);
        o25.setTopId(7);
        o25.setKeyId("A");
        o25.setOptions("欢迎他");
        o25.setScore(6D);
        mongoTemplate.save(o25);
        Options o26 = new Options();
        o26.setQid(1);
        o26.setTopId(7);
        o26.setKeyId("B");
        o26.setOptions("感到非常愤怒");
        o26.setScore(2D);
        mongoTemplate.save(o26);
        Options o27 = new Options();
        o27.setQid(1);
        o27.setTopId(7);
        o27.setKeyId("C");
        o27.setOptions("在上述两极端之间");
        o27.setScore(4D);
        mongoTemplate.save(o27);

        Options o28 = new Options();
        o28.setQid(1);
        o28.setTopId(8);
        o28.setKeyId("A");
        o28.setOptions("红或橘色");
        o28.setScore(6D);
        mongoTemplate.save(o28);
        Options o29 = new Options();
        o29.setQid(1);
        o29.setTopId(8);
        o29.setKeyId("B");
        o29.setOptions("黑色");
        o29.setScore(7D);
        mongoTemplate.save(o29);
        Options o30 = new Options();
        o30.setQid(1);
        o30.setTopId(8);
        o30.setKeyId("C");
        o30.setOptions("黄色或浅蓝色");
        o30.setScore(5D);
        mongoTemplate.save(o30);
        Options o31 = new Options();
        o31.setQid(1);
        o31.setTopId(8);
        o31.setKeyId("D");
        o31.setOptions("绿色");
        o31.setScore(4D);
        mongoTemplate.save(o31);
        Options o32 = new Options();
        o32.setQid(1);
        o32.setTopId(8);
        o32.setKeyId("E");
        o32.setOptions("深蓝色或紫色");
        o32.setScore(3D);
        mongoTemplate.save(o32);
        Options o33 = new Options();
        o33.setQid(1);
        o33.setTopId(8);
        o33.setKeyId("F");
        o33.setOptions("白色");
        o33.setScore(2D);
        mongoTemplate.save(o33);
        Options o34 = new Options();
        o34.setQid(1);
        o34.setTopId(8);
        o34.setKeyId("G");
        o34.setOptions("棕色或灰色");
        o34.setScore(1D);
        mongoTemplate.save(o34);

        Options o35 = new Options();
        o35.setQid(1);
        o35.setTopId(9);
        o35.setKeyId("A");
        o35.setOptions("仰躺，伸直");
        o35.setScore(7D);
        mongoTemplate.save(o35);
        Options o36 = new Options();
        o36.setQid(1);
        o36.setTopId(9);
        o36.setKeyId("B");
        o36.setOptions("俯躺，伸直");
        o36.setScore(6D);
        mongoTemplate.save(o36);
        Options o37 = new Options();
        o37.setQid(1);
        o37.setTopId(9);
        o37.setKeyId("C");
        o37.setOptions("侧躺，微蜷");
        o37.setScore(4D);
        mongoTemplate.save(o37);
        Options o38 = new Options();
        o38.setQid(1);
        o38.setTopId(9);
        o38.setKeyId("D");
        o38.setOptions("头睡在一手臂上");
        o38.setScore(2D);
        mongoTemplate.save(o38);
        Options o39 = new Options();
        o39.setQid(1);
        o39.setTopId(9);
        o39.setKeyId("E");
        o39.setOptions("被子盖过头");
        o39.setScore(1D);
        mongoTemplate.save(o39);

        Options o40 = new Options();
        o40.setQid(1);
        o40.setTopId(10);
        o40.setKeyId("A");
        o40.setOptions("落下");
        o40.setScore(4D);
        mongoTemplate.save(o40);
        Options o41 = new Options();
        o41.setQid(1);
        o41.setTopId(10);
        o41.setKeyId("B");
        o41.setOptions("打架或挣扎");
        o41.setScore(2D);
        mongoTemplate.save(o41);
        Options o42 = new Options();
        o42.setQid(1);
        o42.setTopId(10);
        o42.setKeyId("C");
        o42.setOptions("找东西或人");
        o42.setScore(3D);
        mongoTemplate.save(o42);
        Options o43 = new Options();
        o43.setQid(1);
        o43.setTopId(10);
        o43.setKeyId("D");
        o43.setOptions("飞或漂浮");
        o43.setScore(5D);
        mongoTemplate.save(o43);
        Options o44 = new Options();
        o44.setQid(1);
        o44.setTopId(10);
        o44.setKeyId("E");
        o44.setOptions("你平常不做梦");
        o44.setScore(6D);
        mongoTemplate.save(o44);
        Options o45 = new Options();
        o45.setQid(1);
        o45.setTopId(10);
        o45.setKeyId("F");
        o45.setOptions("你的梦都是愉快的");
        o45.setScore(1D);
        mongoTemplate.save(o45);
    }

    @Test
    public void testOptions3(){
        Options o1 = new Options();
        o1.setQid(3);
        o1.setTopId(1);
        o1.setKeyId("A");
        o1.setOptions("电影院的右边");
        o1.setScore(3D);
        mongoTemplate.save(o1);
        Options o2 = new Options();
        o2.setQid(3);
        o2.setTopId(1);
        o2.setKeyId("B");
        o2.setOptions("不在意坐在哪里");
        o2.setScore(2D);
        mongoTemplate.save(o2);
        Options o3 = new Options();
        o3.setQid(3);
        o3.setTopId(1);
        o3.setKeyId("C");
        o3.setOptions("电影院的左边");
        o3.setScore(5D);
        mongoTemplate.save(o3);

        Options o4 = new Options();
        o4.setQid(3);
        o4.setTopId(2);
        o4.setKeyId("A");
        o4.setOptions("深表同情,并和他们讨论他们的感受");
        o4.setScore(2D);
        mongoTemplate.save(o4);
        Options o5 = new Options();
        o5.setQid(3);
        o5.setTopId(2);
        o5.setKeyId("B");
        o5.setOptions("介绍一个值得信任的人去修理");
        o5.setScore(4D);
        mongoTemplate.save(o5);
        Options o6 = new Options();
        o6.setQid(3);
        o6.setTopId(2);
        o6.setKeyId("C");
        o6.setOptions("弄清楚它的构造,想帮他们修理好");
        o6.setScore(5D);
        mongoTemplate.save(o6);

        Options o9 = new Options();
        o9.setQid(3);
        o9.setTopId(3);
        o9.setKeyId("A");
        o9.setOptions("坦白说你不知道");
        o9.setScore(4D);
        mongoTemplate.save(o9);
        Options o10 = new Options();
        o10.setQid(3);
        o10.setTopId(3);
        o10.setKeyId("B");
        o10.setOptions("思考一会儿后,推测大约的方向");
        o10.setScore(2D);
        mongoTemplate.save(o10);
        Options o11 = new Options();
        o11.setQid(3);
        o11.setTopId(3);
        o11.setKeyId("C");
        o11.setOptions("毫无困难地指出北方方向");
        o11.setScore(3D);
        mongoTemplate.save(o11);

        Options o14 = new Options();
        o14.setQid(3);
        o14.setTopId(4);
        o14.setKeyId("A");
        o14.setOptions("宁愿找另一个车位");
        o14.setScore(2D);
        mongoTemplate.save(o14);
        Options o15 = new Options();
        o15.setQid(3);
        o15.setTopId(4);
        o15.setKeyId("B");
        o15.setOptions("试图小心地停进去");
        o15.setScore(5D);
        mongoTemplate.save(o15);
        Options o16 = new Options();
        o16.setQid(3);
        o16.setTopId(4);
        o16.setKeyId("C");
        o16.setOptions("很顺利地倒车停进去");
        o16.setScore(2D);
        mongoTemplate.save(o16);

        Options o18 = new Options();
        o18.setQid(3);
        o18.setTopId(5);
        o18.setKeyId("A");
        o18.setOptions("接电话,电视开着");
        o18.setScore(2D);
        mongoTemplate.save(o18);
        Options o19 = new Options();
        o19.setQid(3);
        o19.setTopId(5);
        o19.setKeyId("B");
        o19.setOptions("把音量转小后才接电话");
        o19.setScore(4D);
        mongoTemplate.save(o19);
        Options o20 = new Options();
        o20.setQid(3);
        o20.setTopId(5);
        o20.setKeyId("C");
        o20.setOptions("关掉电视,叫其他人安静后才接电话");
        o20.setScore(5D);
        mongoTemplate.save(o20);

        Options o22 = new Options();
        o22.setQid(3);
        o22.setTopId(6);
        o22.setKeyId("A");
        o22.setOptions("听完后,你可以毫无困难的跟着唱");
        o22.setScore(6D);
        mongoTemplate.save(o22);
        Options o23 = new Options();
        o23.setQid(3);
        o23.setTopId(6);
        o23.setKeyId("B");
        o23.setOptions("如果是首很简单的歌,听过后你可以跟着哼唱一小段");
        o23.setScore(4D);
        mongoTemplate.save(o23);
        Options o24 = new Options();
        o24.setQid(3);
        o24.setTopId(6);
        o24.setKeyId("C");
        o24.setOptions("很难记得歌曲的旋律,但是你可以回想起部分歌词");
        o24.setScore(2D);
        mongoTemplate.save(o24);

        Options o25 = new Options();
        o25.setQid(3);
        o25.setTopId(7);
        o25.setKeyId("A");
        o25.setOptions("直觉");
        o25.setScore(2D);
        mongoTemplate.save(o25);
        Options o26 = new Options();
        o26.setQid(3);
        o26.setTopId(7);
        o26.setKeyId("B");
        o26.setOptions("可靠的资讯和大胆的假设,才做出判断");
        o26.setScore(3D);
        mongoTemplate.save(o26);
        Options o27 = new Options();
        o27.setQid(3);
        o27.setTopId(7);
        o27.setKeyId("C");
        o27.setOptions("事实统计数字和资料");
        o27.setScore(4D);
        mongoTemplate.save(o27);

        Options o28 = new Options();
        o28.setQid(3);
        o28.setTopId(8);
        o28.setKeyId("A");
        o28.setOptions("先做别的事,等到自然想起为止");
        o28.setScore(2D);
        mongoTemplate.save(o28);
        Options o29 = new Options();
        o29.setQid(3);
        o29.setTopId(8);
        o29.setKeyId("B");
        o29.setOptions("做别的事,但同时试着回想你把钥匙放在哪里");
        o29.setScore(4D);
        mongoTemplate.save(o29);
        Options o30 = new Options();
        o30.setQid(3);
        o30.setTopId(8);
        o30.setKeyId("C");
        o30.setOptions("在心里回想刚刚做了哪些事,借此想起放在何处");
        o30.setScore(3D);
        mongoTemplate.save(o30);

        Options o35 = new Options();
        o35.setQid(3);
        o35.setTopId(9);
        o35.setKeyId("A");
        o35.setOptions("指出声音来源");
        o35.setScore(5D);
        mongoTemplate.save(o35);
        Options o36 = new Options();
        o36.setQid(3);
        o36.setTopId(9);
        o36.setKeyId("B");
        o36.setOptions("如果你够专心,可以指出声音来源");
        o36.setScore(4D);
        mongoTemplate.save(o36);
        Options o37 = new Options();
        o37.setQid(3);
        o37.setTopId(9);
        o37.setKeyId("C");
        o37.setOptions("没办法知道声音来源");
        o37.setScore(3D);
        mongoTemplate.save(o37);

        Options o40 = new Options();
        o40.setQid(3);
        o40.setTopId(10);
        o40.setKeyId("A");
        o40.setOptions("可以轻易想起他们的长相");
        o40.setScore(4D);
        mongoTemplate.save(o40);
        Options o41 = new Options();
        o41.setQid(3);
        o41.setTopId(10);
        o41.setKeyId("B");
        o41.setOptions("只能记得其中几个的长相");
        o41.setScore(2D);
        mongoTemplate.save(o41);
        Options o42 = new Options();
        o42.setQid(3);
        o42.setTopId(10);
        o42.setKeyId("C");
        o42.setOptions("比较可能记住他们的名字");
        o42.setScore(3D);
        mongoTemplate.save(o42);

    }
    @Test
    public void testOptions2(){
        Options o1 = new Options();
        o1.setQid(2);
        o1.setTopId(1);
        o1.setKeyId("A");
        o1.setOptions("一次也没有");
        o1.setScore(2D);
        mongoTemplate.save(o1);
        Options o2 = new Options();
        o2.setQid(2);
        o2.setTopId(1);
        o2.setKeyId("B");
        o2.setOptions("不超过2次");
        o2.setScore(4D);
        mongoTemplate.save(o2);
        Options o3 = new Options();
        o3.setQid(2);
        o3.setTopId(1);
        o3.setKeyId("C");
        o3.setOptions("3到5次以上");
        o3.setScore(6D);
        mongoTemplate.save(o3);

        Options o4 = new Options();
        o4.setQid(2);
        o4.setTopId(2);
        o4.setKeyId("A");
        o4.setOptions("1—3");
        o4.setScore(6D);
        mongoTemplate.save(o4);
        Options o5 = new Options();
        o5.setQid(2);
        o5.setTopId(2);
        o5.setKeyId("B");
        o5.setOptions("4—7");
        o5.setScore(4D);
        mongoTemplate.save(o5);
        Options o6 = new Options();
        o6.setQid(2);
        o6.setTopId(2);
        o6.setKeyId("C");
        o6.setOptions("8或8以上");
        o6.setScore(7D);
        mongoTemplate.save(o6);

        Options o9 = new Options();
        o9.setQid(2);
        o9.setTopId(3);
        o9.setKeyId("A");
        o9.setOptions("不超过10分钟");
        o9.setScore(4D);
        mongoTemplate.save(o9);
        Options o10 = new Options();
        o10.setQid(2);
        o10.setTopId(3);
        o10.setKeyId("B");
        o10.setOptions("不超过2小时");
        o10.setScore(2D);
        mongoTemplate.save(o10);
        Options o11 = new Options();
        o11.setQid(2);
        o11.setTopId(3);
        o11.setKeyId("C");
        o11.setOptions("不超过半天");
        o11.setScore(5D);
        mongoTemplate.save(o11);

        Options o14 = new Options();
        o14.setQid(2);
        o14.setTopId(4);
        o14.setKeyId("A");
        o14.setOptions("没有");
        o14.setScore(4D);
        mongoTemplate.save(o14);
        Options o15 = new Options();
        o15.setQid(2);
        o15.setTopId(4);
        o15.setKeyId("B");
        o15.setOptions("轻度");
        o15.setScore(6D);
        mongoTemplate.save(o15);
        Options o16 = new Options();
        o16.setQid(2);
        o16.setTopId(4);
        o16.setKeyId("C");
        o16.setOptions("中度");
        o16.setScore(2D);
        mongoTemplate.save(o16);
        Options o17 = new Options();
        o17.setQid(2);
        o17.setTopId(4);
        o17.setKeyId("D");
        o17.setOptions("严重");
        o17.setScore(1D);
        mongoTemplate.save(o17);

        Options o18 = new Options();
        o18.setQid(2);
        o18.setTopId(5);
        o18.setKeyId("A");
        o18.setOptions("两人刚认识时的甜蜜回忆");
        o18.setScore(6D);
        mongoTemplate.save(o18);
        Options o19 = new Options();
        o19.setQid(2);
        o19.setTopId(5);
        o19.setKeyId("B");
        o19.setOptions("分手时的感觉");
        o19.setScore(4D);
        mongoTemplate.save(o19);
        Options o20 = new Options();
        o20.setQid(2);
        o20.setTopId(5);
        o20.setKeyId("C");
        o20.setOptions("当初介入你们的第三者");
        o20.setScore(3D);
        mongoTemplate.save(o20);
        Options o21 = new Options();
        o21.setQid(2);
        o21.setTopId(5);
        o21.setKeyId("D");
        o21.setOptions("有一次出国旅行的经验");
        o21.setScore(5D);
        mongoTemplate.save(o21);

        Options o22 = new Options();
        o22.setQid(2);
        o22.setTopId(6);
        o22.setKeyId("A");
        o22.setOptions("有困难,需要找人帮助");
        o22.setScore(6D);
        mongoTemplate.save(o22);
        Options o23 = new Options();
        o23.setQid(2);
        o23.setTopId(6);
        o23.setKeyId("B");
        o23.setOptions("把地图转过来,面对你要走的方向");
        o23.setScore(4D);
        mongoTemplate.save(o23);
        Options o24 = new Options();
        o24.setQid(2);
        o24.setTopId(6);
        o24.setKeyId("C");
        o24.setOptions("没有任何困难");
        o24.setScore(2D);
        mongoTemplate.save(o24);

        Options o25 = new Options();
        o25.setQid(2);
        o25.setTopId(7);
        o25.setKeyId("A");
        o25.setOptions("三件事同时进行");
        o25.setScore(6D);
        mongoTemplate.save(o25);
        Options o26 = new Options();
        o26.setQid(2);
        o26.setTopId(7);
        o26.setKeyId("B");
        o26.setOptions("关掉收音机,但嘴巴和手都没有停");
        o26.setScore(2D);
        mongoTemplate.save(o26);
        Options o27 = new Options();
        o27.setQid(2);
        o27.setTopId(7);
        o27.setKeyId("C");
        o27.setOptions("告诉朋友,你做好菜后马上回电话给他");
        o27.setScore(4D);
        mongoTemplate.save(o27);

        Options o28 = new Options();
        o28.setQid(2);
        o28.setTopId(8);
        o28.setKeyId("A");
        o28.setOptions("画一张标示清楚的地图寄给他们,或是请别人替你说明该如何走");
        o28.setScore(2D);
        mongoTemplate.save(o28);
        Options o29 = new Options();
        o29.setQid(2);
        o29.setTopId(8);
        o29.setKeyId("B");
        o29.setOptions("问她们有没有熟悉的地标,然后告诉他们该怎么走");
        o29.setScore(4D);
        mongoTemplate.save(o29);
        Options o30 = new Options();
        o30.setQid(2);
        o30.setTopId(8);
        o30.setKeyId("C");
        o30.setOptions("口头上告诉他们该怎么走");
        o30.setScore(5D);
        mongoTemplate.save(o30);

        Options o35 = new Options();
        o35.setQid(2);
        o35.setTopId(9);
        o35.setKeyId("A");
        o35.setOptions("会利用铅笔、纸和肢体语言");
        o35.setScore(2D);
        mongoTemplate.save(o35);
        Options o36 = new Options();
        o36.setQid(2);
        o36.setTopId(9);
        o36.setKeyId("B");
        o36.setOptions("口头解释加上肢体语言");
        o36.setScore(3D);
        mongoTemplate.save(o36);
        Options o37 = new Options();
        o37.setQid(2);
        o37.setTopId(9);
        o37.setKeyId("C");
        o37.setOptions("口头清楚简单地解释");
        o37.setScore(4D);
        mongoTemplate.save(o37);

        Options o40 = new Options();
        o40.setQid(2);
        o40.setTopId(10);
        o40.setKeyId("A");
        o40.setOptions("在脑海里回想电影的画面");
        o40.setScore(4D);
        mongoTemplate.save(o40);
        Options o41 = new Options();
        o41.setQid(2);
        o41.setTopId(10);
        o41.setKeyId("B");
        o41.setOptions("把画面及角色的台词说出来");
        o41.setScore(2D);
        mongoTemplate.save(o41);
        Options o42 = new Options();
        o42.setQid(2);
        o42.setTopId(10);
        o42.setKeyId("C");
        o42.setOptions("主要引述电影里的对话");
        o42.setScore(3D);
        mongoTemplate.save(o42);

    }

    @Test
    public void testPersonalityType(){
        PersonalityType personalityType1 = new PersonalityType();
        personalityType1.setType(1);
        personalityType1.setConclusion("猫头鹰：他们的共同特质为重计划、条理、细节精准。在行为上，表现出喜欢理性思考与分析、较重视制度、结构、规范。他们注重执行游戏规则、循规蹈矩、巨细靡遗、重视品质、敬业负责。");
        personalityType1.setCover("https://tanhua-dev.oss-cn-zhangjiakou.aliyuncs.com/images/test_soul/owl.png");
        personalityType1.setDimensions("外向=97.3%,判断=78.53%,抽象=77.81%,理性=79.96%");
        mongoTemplate.save(personalityType1);
        PersonalityType personalityType2 = new PersonalityType();
        personalityType2.setType(2);
        personalityType2.setConclusion("白兔型：平易近人、敦厚可靠、避免冲突与不具批判性。在行为上，表现出不慌不忙、冷静自持的态度。他们注重稳定与中长程规划，现实生活中，常会反思自省并以和谐为中心，即使面对困境，亦能泰然自若，从容应付。");
        personalityType2.setCover("https://tanhua-dev.oss-cn-zhangjiakou.aliyuncs.com/images/test_soul/rabbit.png");
        personalityType2.setDimensions("外向=95.3%,判断=74.53%,抽象=97.81%,理性=89.96%");
        mongoTemplate.save(personalityType2);
        PersonalityType personalityType3 = new PersonalityType();
        personalityType3.setType(3);
        personalityType3.setConclusion("狐狸型 ：人际关系能力极强，擅长以口语表达感受而引起共鸣，很会激励并带动气氛。他们喜欢跟别人互动，重视群体的归属感，基本上是比较「人际导向」。由于他们富同理心并乐于分享，具有很好的亲和力，在服务业、销售业、传播业及公共关系等领域中，狐狸型的领导者都有很杰出的表现。");
        personalityType3.setCover("https://tanhua-dev.oss-cn-zhangjiakou.aliyuncs.com/images/test_soul/fox.png");
        personalityType3.setDimensions("外向=95.3%,判断=84.53%,抽象=97.81%,理性=89.96%");
        mongoTemplate.save(personalityType3);
        PersonalityType personalityType4 = new PersonalityType();
        personalityType4.setType(4);
        personalityType4.setConclusion("狮子型：性格为充满自信、竞争心强、主动且企图心强烈，是个有决断力的领导者。一般而言，狮子型的人胸怀大志，勇于冒险，看问题能够直指核心，并对目标全力以赴。");
        personalityType4.setCover("https://tanhua-dev.oss-cn-zhangjiakou.aliyuncs.com/images/test_soul/lion.png");
        personalityType4.setDimensions("外向=93.3%,判断=79.53%,抽象=75.81%,理性=89.96%");
        mongoTemplate.save(personalityType4);

    }
}
